package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 关注-粉丝业务对象 ykj_user_focus
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserFocusBo extends BaseEntity {

    /** 自增主键 */
    @NotNull(
            message = "自增主键不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** 谁关注的 */
    @NotNull(
            message = "谁关注的不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long fansUserId;

    /** 关注了谁 */
    @NotNull(
            message = "关注了谁不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long focusUserId;

    /** 亲密度 */
    @NotNull(
            message = "亲密度不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private BigDecimal loveValue;
}
